package com.xuecheng.content.feign;


import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.content.feign.fallback.MediaFallBackFactory;
import com.xuecheng.media.entity.MediaDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = XcFeignServiceNameList.XC_MEDIA_SERVICE,fallbackFactory = MediaFallBackFactory.class)
public interface MediaFeign {

    @GetMapping("media/l/media/{mediaId}")
    RestResponse<MediaDTO> selectMediaId(@PathVariable Long mediaId);
}
